#!/bin/bash

MAIN=com.trydofor.id.xnet.GuiShell
EXLD=lib/client-lib-exclude.txt

cd `dirname $0`
#set class path
CP=cnf:ext
for f in `ls a9id-net-*.jar`;do CP=$CP:$f; done
for f in `ls lib/*.jar`;do
    inc=yes
    if [ -f "$EXLD" ];then
        for j in `cat "$EXLD"`;do
            if [ -n "`echo $f|grep $j`" ];then
                echo inc=no $j $f
            fi
        done
    fi
    if [ "$inc" == "yes" ];then
        CP=$CP:$f;
    fi
done
for f in `ls ext/*.jar`;do CP=$CP:$f; done

java $A9ID_OPTS -classpath $CP $MAIN $* &
